package com.cpp.pojo.vo.view;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

//平均正确率趋势、知识点掌握情况，高频错误知识点等
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StudentLearningEffectVO {
    //学科id
    private Long subjectId;
    //折线图
    private List<DataAverageRightRate> dataAverageRightRates;
    //知识点掌握率
    private Double knowledgePointMastery;
    //高频错误知识点
    private List<KnowledgeVO> highFrequencyError;

    @Data
    @Builder
    public static class DataAverageRightRate{
        // 平均正确率
        private Double averageRightRate;
        // 日期
        @JsonFormat(pattern = "yyyy-MM-dd")
        private LocalDateTime date;

    }
    @Data
    @Builder
    public static class KnowledgeVO{
        // 知识点名称
        private String name;
        // 知识点内容
        private String content;
        // 错误次数
        private Integer wrongCount;
    }
}
